package gdepot

import grails.test.mixin.TestFor
import org.apache.tomcat.jni.User
import spock.lang.Specification

/**
 * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
 */
@TestFor(Users)
class UsersSpec extends Specification {

    def setup() {
    }

    def cleanup() {
    }

    void testUserVerify() {
        def user=new Users(userName: 'aabb')
        assertNull(user.save())
        assertTrue(user.hasErrors())
    }
}
